package com.sp.system.user.core.utils.enums;

public enum PermissionEnum implements IBaseError {
    LOGIN_SUCCESS(10001, "登录成功"),
    // 认证失败 小于4位数 成功大于4位数
    VERIFY_ERROR(101, "当前请求无权限"),
    USER_ERROR(102, "用户名或密码错误"),
    TOKEN_TIME_OUT_ERROR(401, "toekn超过有效期，请重新登"),
    TOKEN_INVALID_ERROR(401, "token invalid");

    private final int status;
    private final String message;

    PermissionEnum(int code, String message) {
        this.status = code;
        this.message = message;
    }
    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
